<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require("./inc/db.php");
require("./inc/function.php");
$system = new system();
$secure = new secure();
// LOAD DATABASE
$db = new db();
$db->database('localhost', 'root', '', 'kaibb2');
$prefix = 'kaibb';

// SESSION
session_name($system->confdata('session'));
session_start();
date_default_timezone_set('UTC');

// CHECK IF USER IS LOGGED IN
if (!isset($_SESSION['email'])) {
    $email = '';
} else {
    $email = $_SESSION['email'];
}

if (!isset($_SESSION['lpip'])) {
    $lpip = '';
} else {
    $lpip = $_SESSION['lpip'];
}
$account = $db->fetch("SELECT id FROM accounts WHERE email = '$email' AND lpip = '$lpip'");
// STYLES SYSTEM
$root = './';
$template = 'proBlue';
require("./inc/parser.php");
$STYLE = new style();

// PARSE STYLE
$output = '';
$tpl = $STYLE->open('header.tpl');
$output .= $STYLE->tags($tpl, array());
?>
